<template>
  <div class="swiper">
    <el-carousel :interval="4000" type="card" height="280px">
      <el-carousel-item v-for="(item,index) in swiperList" :key="index">
        <img :src="baseUrl + item.picImg"/>
      </el-carousel-item>
    </el-carousel>
  </div>
</template>

<script>

export default {
  name: "swiper",
  data() {
    return {
      swiperList: [],
      baseUrl: process.env.VUE_APP_BASE_API,
    }
  },
  created() {
    this.swiperList = [ {picImg: '/profile/avatar/2023/04/03/13_20230403142711A001.jpg'},];
  }
}
</script>

<style lang="scss" scoped>
@import '~@/assets/css/index.scss';
@import '~@/assets/css/swiper.scss';
</style>
